home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / gnustuff / tos / progut~1 / stdwin.zoo / atari / trees.h < prev    next >
Encoding:
C/C++ Source or Header  |  1989-10-17  |  452 b   |  24 lines

  1. /* External interface to trees.c */
  2.  
  3.  
  4. /* Definition of a tree (under construction).
  5.    'Focus' is the index of the current node.
  6.    The root node is always the first node.
  7.    If the tree is empty, the focus is undefined. */
  8.  
  9. typedef struct tree {
  10.     OBJECT *obj;
  11.     int nobjs;
  12.     int focus;
  13. } TREE;
  14.  
  15. int tr_root();
  16. int tr_parent();
  17. int tr_sibling();
  18. int tr_child();
  19. int tr_nchildren();
  20. OBJECT *tr_add();
  21. void tr_dump();
  22. OBJECT *tr_node();
  23. OBJECT *tr_tree();
  24.